package sendmethodinterfacelogic

import (
	"context"

	"dfx_cmdb/cmdb-sendmsg-rpc/internal/svc"
	cmdb_database_sync "dfx_cmdb/cmdb-sendmsg-rpc/types/cmdb-database-sync"

	"github.com/zeromicro/go-zero/core/logx"
)

type InsertSendMethodLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewInsertSendMethodLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InsertSendMethodLogic {
	return &InsertSendMethodLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// InsertSendMethod 新增一个发送方式配置
func (l *InsertSendMethodLogic) InsertSendMethod(in *cmdb_database_sync.SendMethodRequest) (*cmdb_database_sync.PublicMsgResponse, error) {
	// todo: add your logic here and delete this line
	return &cmdb_database_sync.PublicMsgResponse{
		Msg: "删除成功",
	}, nil
}
